package org.example;

import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@Builder(toBuilder = true)
public class Student {
    @NotNull(groups = ModGroup.class)
    public String no;
    @NotEmpty(groups = {AddGroup.class, ModGroup.class})
    public String name;
}
